﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ElectronicCommerce.Framework.Payment.Contract.DataContract;
using ElectronicCommerce.Framework.Payment.Contract.DataContract.History;

namespace ElectronicCommerce.Framework.Payment.Data.Interfaces
{
    public interface IRefundHistoryRepository
    {
        /// <summary>
        /// 记录退款日志
        /// </summary>
        /// <param name="request"></param>
        /// <param name="result"></param>
        void InsertRefundHistory(RefundRequest request, RefundResult result);

        /// <summary>
        /// 获取退款历史记录
        /// </summary>
        /// <param name="soID"></param>
        /// <returns></returns>
        List<RefundHistory> GetRefundHistoryList(string soID);

        /// <summary>
        /// 获取某个订单相关的最近退款时间
        /// </summary>
        /// <param name="soID"></param>
        /// <returns></returns>
        DateTime GetLastRefundDate(string soID);
    }
}
